package cn.wolfcode.trip.base.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Getter@Setter
public class QueryObject {
    private int currentPage = 1;
    private int pageSize = 5;
    private String keyword;
    private String orderBy;//排序规则
    protected String empty2Null(String s) {
        return StringUtils.hasLength(s) ? s : null;
    }
    public String getKeyword(){
        return empty2Null(keyword);
    }
}
